<?php
class DebugSessionAction extends CAction {
    public function run() {
        //UploadUtils::clearSessionFiles();
//        $sessionFiles = UploadUtils::getSessionFiles();
//        $file = new File;
//        $file->entity = "amparo";
//        UploadUtils::addFileToSession($file);

        $sessionFiles = UploadUtils::getSessionFiles();

        print "<h1>Debug Session</h1>";
        print "\n<hr/>";
        print_r($sessionFiles);
        print "\n<hr/>";
        foreach($sessionFiles as $file) {
            print $file;
            print "\n<br/>";
        }
        exit(0);
    }

}
